<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.6"/>
<title>tinydtls: debug.h File Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { searchBox.OnSelectItem(0); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">tinydtls
   &#160;<span id="projectnumber">0.8.2</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.6 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li><a href="annotated.html"><span>Data&#160;Structures</span></a></li>
      <li class="current"><a href="files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="files.html"><span>File&#160;List</span></a></li>
      <li><a href="globals.html"><span>Globals</span></a></li>
    </ul>
  </div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
<a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(0)"><span class="SelectionMark">&#160;</span>All</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(1)"><span class="SelectionMark">&#160;</span>Data Structures</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(2)"><span class="SelectionMark">&#160;</span>Files</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(3)"><span class="SelectionMark">&#160;</span>Functions</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(4)"><span class="SelectionMark">&#160;</span>Variables</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(5)"><span class="SelectionMark">&#160;</span>Typedefs</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(6)"><span class="SelectionMark">&#160;</span>Enumerations</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(7)"><span class="SelectionMark">&#160;</span>Enumerator</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(8)"><span class="SelectionMark">&#160;</span>Macros</a><a class="SelectItem" href="javascript:void(0)" onclick="searchBox.OnSelectItem(9)"><span class="SelectionMark">&#160;</span>Groups</a></div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#define-members">Macros</a> &#124;
<a href="#enum-members">Enumerations</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">debug.h File Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><code>#include &lt;stdlib.h&gt;</code><br/>
<code>#include &quot;<a class="el" href="dtls__config_8h_source.html">dtls_config.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="global_8h_source.html">global.h</a>&quot;</code><br/>
<code>#include &quot;<a class="el" href="session_8h_source.html">session.h</a>&quot;</code><br/>
</div>
<p><a href="debug_8h_source.html">Go to the source code of this file.</a></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="define-members"></a>
Macros</h2></td></tr>
<tr class="memitem:a1f464e950a4fa11e8821b5c725921a15"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a1f464e950a4fa11e8821b5c725921a15">PRINTF</a>(...)</td></tr>
<tr class="separator:a1f464e950a4fa11e8821b5c725921a15"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a94fa8dba0861075ba507ea0417fd83c8"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a94fa8dba0861075ba507ea0417fd83c8">dtls_emerg</a>(...)&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9daaa080e6de827addce6dc6af232ecba3e">DTLS_LOG_EMERG</a>, __VA_ARGS__)</td></tr>
<tr class="separator:a94fa8dba0861075ba507ea0417fd83c8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab22e3494f6186183820142ba279fe9ae"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#ab22e3494f6186183820142ba279fe9ae">dtls_alert</a>(...)&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da5d02ea1ea67cb762b8821f35d7cccd9e">DTLS_LOG_ALERT</a>, __VA_ARGS__)</td></tr>
<tr class="separator:ab22e3494f6186183820142ba279fe9ae"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ad4c9c94c054579b73789fead587c8514"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#ad4c9c94c054579b73789fead587c8514">dtls_crit</a>(...)&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9dae376c811a8735fe72f67131ba1a1428d">DTLS_LOG_CRIT</a>, __VA_ARGS__)</td></tr>
<tr class="separator:ad4c9c94c054579b73789fead587c8514"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae1c22127c92fab70da7bf9cae8536e5c"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#ae1c22127c92fab70da7bf9cae8536e5c">dtls_warn</a>(...)&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9dafd78dbf760d741729305d83727c14c70">DTLS_LOG_WARN</a>, __VA_ARGS__)</td></tr>
<tr class="separator:ae1c22127c92fab70da7bf9cae8536e5c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:add9bf011215b9fc36abc5c80722c876e"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#add9bf011215b9fc36abc5c80722c876e">dtls_notice</a>(...)&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da5f9ff4e9574b821a0c43261c9a9dca09">DTLS_LOG_NOTICE</a>, __VA_ARGS__)</td></tr>
<tr class="separator:add9bf011215b9fc36abc5c80722c876e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afde5692e7a590b0dd016d5753284c175"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#afde5692e7a590b0dd016d5753284c175">dtls_info</a>(...)&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da9b79f1b32df348f97ce4366d0f0454c7">DTLS_LOG_INFO</a>, __VA_ARGS__)</td></tr>
<tr class="separator:afde5692e7a590b0dd016d5753284c175"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0f158325426415d9efb5a36bebf45844"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a0f158325426415d9efb5a36bebf45844">dtls_debug</a>(...)&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020">DTLS_LOG_DEBUG</a>, __VA_ARGS__)</td></tr>
<tr class="separator:a0f158325426415d9efb5a36bebf45844"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a24b1e8ecaa65f684d879ed9d5c37119d"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a24b1e8ecaa65f684d879ed9d5c37119d">dtls_debug_hexdump</a>(name, buf, length)&#160;&#160;&#160;<a class="el" href="debug_8h.html#a8badc2780b90e28c6c4e1a3b410b31cc">dtls_dsrv_hexdump_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020">DTLS_LOG_DEBUG</a>, name, buf, length, 1)</td></tr>
<tr class="separator:a24b1e8ecaa65f684d879ed9d5c37119d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab27d2c7cae1e8022e93562ecda9140b6"><td class="memItemLeft" align="right" valign="top">#define&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#ab27d2c7cae1e8022e93562ecda9140b6">dtls_debug_dump</a>(name, buf, length)&#160;&#160;&#160;<a class="el" href="debug_8h.html#a8badc2780b90e28c6c4e1a3b410b31cc">dtls_dsrv_hexdump_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020">DTLS_LOG_DEBUG</a>, name, buf, length, 0)</td></tr>
<tr class="separator:ab27d2c7cae1e8022e93562ecda9140b6"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="enum-members"></a>
Enumerations</h2></td></tr>
<tr class="memitem:a5cae2fb7fec0dd9e63cf2d755642cd9d"><td class="memItemLeft" align="right" valign="top">enum &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a> { <br/>
&#160;&#160;<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9daaa080e6de827addce6dc6af232ecba3e">DTLS_LOG_EMERG</a> =0, 
<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da5d02ea1ea67cb762b8821f35d7cccd9e">DTLS_LOG_ALERT</a>, 
<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9dae376c811a8735fe72f67131ba1a1428d">DTLS_LOG_CRIT</a>, 
<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9dafd78dbf760d741729305d83727c14c70">DTLS_LOG_WARN</a>, 
<br/>
&#160;&#160;<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da5f9ff4e9574b821a0c43261c9a9dca09">DTLS_LOG_NOTICE</a>, 
<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da9b79f1b32df348f97ce4366d0f0454c7">DTLS_LOG_INFO</a>, 
<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020">DTLS_LOG_DEBUG</a>
<br/>
 }</td></tr>
<tr class="separator:a5cae2fb7fec0dd9e63cf2d755642cd9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:a4a3c60a1e54594e78cd207c57ddb1378"><td class="memItemLeft" align="right" valign="top">static void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a4a3c60a1e54594e78cd207c57ddb1378">check_stack</a> ()</td></tr>
<tr class="separator:a4a3c60a1e54594e78cd207c57ddb1378"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6ae22adf81d9aaf0a2ed74f7f7437971"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a6ae22adf81d9aaf0a2ed74f7f7437971">dtls_package_name</a> ()</td></tr>
<tr class="separator:a6ae22adf81d9aaf0a2ed74f7f7437971"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aab7b9dac4484be50856ab8b8a827d235"><td class="memItemLeft" align="right" valign="top">const char *&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#aab7b9dac4484be50856ab8b8a827d235">dtls_package_version</a> ()</td></tr>
<tr class="separator:aab7b9dac4484be50856ab8b8a827d235"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0af8abc8cf3864ea04954b3537c7e07f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a0af8abc8cf3864ea04954b3537c7e07f">dtls_get_log_level</a> ()</td></tr>
<tr class="separator:a0af8abc8cf3864ea04954b3537c7e07f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ae081a7241940f0195295cc37f39c1d02"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#ae081a7241940f0195295cc37f39c1d02">dtls_set_log_level</a> (<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a> level)</td></tr>
<tr class="separator:ae081a7241940f0195295cc37f39c1d02"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ace8ca7929ecfc486c3ef40828c79bfe5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a> (<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a> level, char *format,...)</td></tr>
<tr class="separator:ace8ca7929ecfc486c3ef40828c79bfe5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af5fe8134d8875eb856a4cd99313ec1b0"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#af5fe8134d8875eb856a4cd99313ec1b0">hexdump</a> (const unsigned char *packet, int length)</td></tr>
<tr class="separator:af5fe8134d8875eb856a4cd99313ec1b0"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7ee74b9f3941b0ec63f35da6b83fa240"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a7ee74b9f3941b0ec63f35da6b83fa240">dump</a> (unsigned char *buf, size_t len)</td></tr>
<tr class="separator:a7ee74b9f3941b0ec63f35da6b83fa240"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a8badc2780b90e28c6c4e1a3b410b31cc"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a8badc2780b90e28c6c4e1a3b410b31cc">dtls_dsrv_hexdump_log</a> (<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a> level, const char *name, const unsigned char *buf, size_t length, int extend)</td></tr>
<tr class="separator:a8badc2780b90e28c6c4e1a3b410b31cc"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a66cb8756d40a3326315d9b5f003a5a76"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="debug_8h.html#a66cb8756d40a3326315d9b5f003a5a76">dtls_dsrv_log_addr</a> (<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a> level, const char *name, const <a class="el" href="structsession__t.html">session_t</a> *addr)</td></tr>
<tr class="separator:a66cb8756d40a3326315d9b5f003a5a76"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Macro Definition Documentation</h2>
<a class="anchor" id="ab22e3494f6186183820142ba279fe9ae"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_alert</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da5d02ea1ea67cb762b8821f35d7cccd9e">DTLS_LOG_ALERT</a>, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00134">134</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="ad4c9c94c054579b73789fead587c8514"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_crit</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9dae376c811a8735fe72f67131ba1a1428d">DTLS_LOG_CRIT</a>, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00135">135</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="a0f158325426415d9efb5a36bebf45844"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_debug</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020">DTLS_LOG_DEBUG</a>, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00139">139</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="ab27d2c7cae1e8022e93562ecda9140b6"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_debug_dump</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">name, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">buf, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">length&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#a8badc2780b90e28c6c4e1a3b410b31cc">dtls_dsrv_hexdump_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020">DTLS_LOG_DEBUG</a>, name, buf, length, 0)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00141">141</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="a24b1e8ecaa65f684d879ed9d5c37119d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_debug_hexdump</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">name, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">buf, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname">length&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#a8badc2780b90e28c6c4e1a3b410b31cc">dtls_dsrv_hexdump_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020">DTLS_LOG_DEBUG</a>, name, buf, length, 1)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00140">140</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="a94fa8dba0861075ba507ea0417fd83c8"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_emerg</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9daaa080e6de827addce6dc6af232ecba3e">DTLS_LOG_EMERG</a>, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00133">133</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="afde5692e7a590b0dd016d5753284c175"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_info</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da9b79f1b32df348f97ce4366d0f0454c7">DTLS_LOG_INFO</a>, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00138">138</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="add9bf011215b9fc36abc5c80722c876e"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_notice</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9da5f9ff4e9574b821a0c43261c9a9dca09">DTLS_LOG_NOTICE</a>, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00137">137</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="ae1c22127c92fab70da7bf9cae8536e5c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define dtls_warn</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td>&#160;&#160;&#160;<a class="el" href="debug_8h.html#ace8ca7929ecfc486c3ef40828c79bfe5">dsrv_log</a>(<a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9dafd78dbf760d741729305d83727c14c70">DTLS_LOG_WARN</a>, __VA_ARGS__)</td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00136">136</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="a1f464e950a4fa11e8821b5c725921a15"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">#define PRINTF</td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00057">57</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Enumeration Type Documentation</h2>
<a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">enum <a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Pre-defined log levels akin to what is used in <b>syslog</b>. </p>
<table class="fieldtable">
<tr><th colspan="2">Enumerator</th></tr><tr><td class="fieldname"><em><a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9daaa080e6de827addce6dc6af232ecba3e"></a>DTLS_LOG_EMERG</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9da5d02ea1ea67cb762b8821f35d7cccd9e"></a>DTLS_LOG_ALERT</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9dae376c811a8735fe72f67131ba1a1428d"></a>DTLS_LOG_CRIT</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9dafd78dbf760d741729305d83727c14c70"></a>DTLS_LOG_WARN</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9da5f9ff4e9574b821a0c43261c9a9dca09"></a>DTLS_LOG_NOTICE</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9da9b79f1b32df348f97ce4366d0f0454c7"></a>DTLS_LOG_INFO</em>&#160;</td><td class="fielddoc">
</td></tr>
<tr><td class="fieldname"><em><a class="anchor" id="a5cae2fb7fec0dd9e63cf2d755642cd9da87f82ea2bdc3f03d9f6d3355a5f8a020"></a>DTLS_LOG_DEBUG</em>&#160;</td><td class="fielddoc">
</td></tr>
</table>

<p>Definition at line <a class="el" href="debug_8h_source.html#l00066">66</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="a4a3c60a1e54594e78cd207c57ddb1378"></a>
<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static void check_stack </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8h_source.html#l00059">59</a> of file <a class="el" href="debug_8h_source.html">debug.h</a>.</p>

</div>
</div>
<a class="anchor" id="ace8ca7929ecfc486c3ef40828c79bfe5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dsrv_log </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a>&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">char *&#160;</td>
          <td class="paramname"><em>format</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>...</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Writes the given text to <code>stdout</code>. The text is output only when <code>level</code> is below or equal to the log level that set by set_log_level(). </p>

<p>Definition at line <a class="el" href="debug_8c_source.html#l00208">208</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="a8badc2780b90e28c6c4e1a3b410b31cc"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtls_dsrv_hexdump_log </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a>&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>length</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>extend</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8c_source.html#l00290">290</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="a66cb8756d40a3326315d9b5f003a5a76"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtls_dsrv_log_addr </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a>&#160;</td>
          <td class="paramname"><em>level</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const char *&#160;</td>
          <td class="paramname"><em>name</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const <a class="el" href="structsession__t.html">session_t</a> *&#160;</td>
          <td class="paramname"><em>addr</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="debug_8c_source.html#l00277">277</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="a0af8abc8cf3864ea04954b3537c7e07f"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a> dtls_get_log_level </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns the current log level. </p>

<p>Definition at line <a class="el" href="debug_8c_source.html#l00058">58</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="a6ae22adf81d9aaf0a2ed74f7f7437971"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* dtls_package_name </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a zero-terminated string with the name of this library. </p>

<p>Definition at line <a class="el" href="debug_8c_source.html#l00049">49</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="aab7b9dac4484be50856ab8b8a827d235"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">const char* dtls_package_version </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Returns a zero-terminated string with the library version. </p>

<p>Definition at line <a class="el" href="debug_8c_source.html#l00053">53</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="ae081a7241940f0195295cc37f39c1d02"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dtls_set_log_level </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="debug_8h.html#a5cae2fb7fec0dd9e63cf2d755642cd9d">log_t</a>&#160;</td>
          <td class="paramname"><em>level</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>Sets the log level to the specified value. </p>

<p>Definition at line <a class="el" href="debug_8c_source.html#l00063">63</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="a7ee74b9f3941b0ec63f35da6b83fa240"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void dump </td>
          <td>(</td>
          <td class="paramtype">unsigned char *&#160;</td>
          <td class="paramname"><em>buf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">size_t&#160;</td>
          <td class="paramname"><em>len</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>dump as narrow string of hex digits </p>

<p>Definition at line <a class="el" href="debug_8c_source.html#l00272">272</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
<a class="anchor" id="af5fe8134d8875eb856a4cd99313ec1b0"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void hexdump </td>
          <td>(</td>
          <td class="paramtype">const unsigned char *&#160;</td>
          <td class="paramname"><em>packet</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">int&#160;</td>
          <td class="paramname"><em>length</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">
<p>dumps packets in usual hexdump format </p>

<p>Definition at line <a class="el" href="debug_8c_source.html#l00252">252</a> of file <a class="el" href="debug_8c_source.html">debug.c</a>.</p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated on Fri Feb 27 2015 15:15:33 for tinydtls by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.6
</small></address>
</body>
</html>
